package com.jtcoding.chat.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author jason.tang
 * @create 2019-01-14 9:21
 * @description 资源状态实体类
 */

@ApiModel(description = "资源日志")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class ResourceLog {
    @ApiModelProperty(value = "自增ID")
    private Integer resNum;

    @ApiModelProperty(value = "资源类型")
    private String resType;

    @ApiModelProperty(value = "原资源名")
    @JsonIgnore
    private String originalName;

    @ApiModelProperty(value = "上传后资源名")
    @JsonIgnore
    private String uploadFileName;

    @ApiModelProperty(value = "资源大小")
    private Double resSize;

    @ApiModelProperty(value = "上传成功后资源URL")
    private String resURL;

    @ApiModelProperty(value = "卷名")
    private String groupName;

    @ApiModelProperty(value = "远程资源名")
    private String remoteFileName;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "来自")
    private String fromService;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDatetime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyDatetime;

    @ApiModelProperty(value = "参考编号")
    private Integer refNum;
}